/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package junit_santiago_martínez_barreda;

import java.util.Scanner;

/**
 * @
 * @see www.google.es
 *@version 3.0
 * @author DAM118
 */

    public class Array{
         private int[] array;
             public Array(int num) {
        array=new int[num];
        Scanner teclado=new Scanner(System.in);
        int entrada;
        for(int i=0;i<array.length;i++){
            System.out.print("Numero "+(i+1)+": ");
            entrada=teclado.nextInt();
            array[i]=entrada;
            /*comentario mu marronero*/
        }
    }
/**
 * @deprecated 
 * @param array 
 */
    public Array(int[] array) {
        this.array = array;
    }

 


        
        public void izquierdaArray(int[]v){
            int x=v[0];
            int i;
            for(i=0;i<v.length-1;i++)
                v[i]=v[i+1];
            v[i]=x;
        }
 /**
  * @since 2.3
  * @param v
  * @return int
  */
        public int sumaArray(int[]v){
            int suma=0;
            int i;
           for(i=0;i<v.length-1;i++)
               suma+=v[i];
           return suma;
        }
    
        public int devolver(){
        return 4;
        }
        /**
         * 
         * @return int 
         */
        public int nardo(){
            return 5;
        }
    }

